package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.R;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * @author zhengwu
 * @email jiachao@163.com
 * @date 2020-10-08 21:49:59
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenusByIds(List<Long> asList);

    /**
     * @param * @param null
     * @Date:15:02 2020/12/6 0006
     * @Description:找到cateLog的完成路径，路径的规则是【父路径/子路径/孙子路径】
     * @retrun
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascode(CategoryEntity category);
}

